<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--这个是子论坛首页的模板，在这个模板里，你可以浏览帖子-->
<html>
	<head>
		<title>${themeTitle}</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">


		<script type="text/javascript" src="../js/jquery-1.6.1.js">
</script>

		<script type="text/javascript" src="../js/forumuploadfile.js">
</script>
<script type="text/javascript" src="../js/formatetext.js">
</script>
	</head>
	<body>

		<div id="showBrifeArticleArea">
			<#list forumInfo as article>
			<a
				href="readArticleAction.action?article.themeTitle=${themeTitle}&article.articleId=${article.articleId}">${article.articleTitle}</a>
			<br>
			authorName:${article.authorName}
			<br>
			commentNumber:${article.commentNumber}
			<br>
			inTime:${article.inTime}
			<br>
			<br>
			</#list>
			<br>
		</div>
		<br>

		<#if (forumPage<=1)> <#else>
		<a
			href="getForumIndexAction.action?forumPage=1&themeTitle=${themeTitle}">首页</a>
		<a
			href="getForumIndexAction.action?forumPage=${forumPage-1}&themeTitle=${themeTitle}">上一页</a>
		</#if> <#if (forumPage>=lastPage)> <#else>
		<a
			href="getForumIndexAction.action?forumPage=${forumPage+1}&themeTitle=${themeTitle}">下一页</a>
		<a
			href="getForumIndexAction.action?forumPage=${lastPage}&themeTitle=${themeTitle}">尾页</a>
		</#if>
		<br>
		<br>
		<br>
		<br>

		<div id="newArticleArea">
			发表新帖
			<br>
			<form method="post" action="newTopicAction.action"
				onsubmit="return formatetext('article.articleContent')">

				<input type="text" name=article.themeTitle
					style="visibility: hidden" value=${themeTitle}>
				<br>
				articleTitle：
				<input type="text" name=article.articleTitle>
				<br>

				articleContent：
				<textarea type="text" name="article.articleContent " cols="50 "
					rows="8 " id="articleContentTextArea"></textarea>
				<br>
				<input type="submit" value="submit">
			</form>
		</div>

		<div id="attachment_area">
		</div>

		<form action="uploadFileAction.action" method="post"
			enctype="multipart/form-data" target="uploadFrame"
			id="uploadFileForm">
			<input type="file" name="upload" id="filePath">
			<br>
			<input value="upload" type="submit" onclick="uploadFile()"
				id="uploadButton">
		</form>
		<iframe name="uploadFrame" style="visibility: hidden"></iframe>

	</body>
</html>